package warthog.scangen;


public final class Sequence extends Regex {
	private Regex a,b;
	public Sequence(Regex a, Regex b) {
		this.a=a; this.b=b;
	}
	@Override
	public void connect(Node start, Node end) {
		Node mid = new Node();
		a.connect(start, mid);
		b.connect(mid, end);
	}

}
